package com.itheima.ssm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("com.itheima.ssm.mapper") //mapper接口扫描
public class Springboot04SsmApplication  extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(Springboot04SsmApplication.class, args);
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(Springboot04SsmApplication.class);
    }
}
